<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Phome extends CI_Controller {
	
	public $WEB_SET;
	public $WEB_Language="english";
	
	
	function __construct()
     {

     	parent::__construct();
		
		
		
     	//按当前语言载入语言文件
     	if($this->session->userdata("lang")=="")
     	{
			$this->lang->load('info',$this->config->item("language"));
		}else
		{
			$this->lang->load('info',$this->session->userdata("lang"));
		}
		
		//加载网站设置
		$this->load->model("Agent_model");
		$this->WEB_SET=$this->Agent_model->load_websetinfo();	
		$this->WEB_Language = $this->session->userdata("lang");
		
     }
	
	//获取当前语言
	public function get_lang()
	{
		$data=array();
		$data["area"]=$this->input->get("area");
		$data["language"]=$this->WEB_Language;
		$this->load->view("ajax/language",$data);
	}
	
	
	
	
}

/* End of file home.php */
/* Location: ./application/controllers/home.php */